package com.gioo.android;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;



public class GCMBroadcastReceiver extends BroadcastReceiver 
{
	
	//public static final String ACTION_RESTART_PERSISTENTSERVICE = "ACTION.Restart.PersistentService";
    
	@Override
    public final void onReceive(Context context, Intent intent) 
    {
    	
    	 
    	
    	
        Log.d("GCM", "onReceive: " + intent.getAction());
        String className = getGCMIntentServiceClassName(context);
        Log.d("GCM", "GCM IntentService class: " + className);
        setResult(Activity.RESULT_OK, null /* data */, null /* extra */);
    }
    /**
     * Gets the class name of the intent service that will handle GCM messages.
     */
    protected String getGCMIntentServiceClassName(Context context) 
    {
        String className = context.getPackageName() + "GCMIntentService";
        return className;
    }
    
}